<?php

class IndexController extends Action{
	
	public function indexAction($page = null){
		echo "FrontEnd Index";
	}
	
	public function blogAction(){
		echo 'blog';
	}
	
	public function loginAction(){
		
		if(Util::_isPost() || Util::_isGet()){
			
			$auth = new Auth('administrador', 'a1b2c3');
			$rs = $auth->_getUser();
			if($rs){
				echo 'logado';
			}
			else{
				echo 'nao logou';
			}
		
		}
	}
	
}